package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
/**
 * 物料产品对象 master_data_product
 *
 * @author honor
 * @date 2025-05-09
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "master_data_product")
@Data
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "id",type = IdType.AUTO)
    private String id;
    

    private String tenantId;

    private String code;

    private String name;

    private String specification;

    private String unitCode;

    private String productCatalogId;

    private String enable;

    private String safeStockFlag;

    private String minStock;

    private String maxStock;

    private String highValue;

    private String batchFlag;

    private String isDeleted;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;
    

    private Long createdBy;
    

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedAt;
    

    private Long updatedBy;

}